<!--
  - Copyright (C) 2018-2019
  - All rights reserved, Designed By www.joolun.com
-->
<template>
  <div class="news-home">
    <div class="news-div">
      <div class="news-main">
        <div class="news-content">
          <div class="news-content-item-img">
            <img-info
              v-model="objData.pic"
              :preview="false"
              class=""
            ></img-info>
          </div>
          <div class="news-content-title">
            <span>{{objData.title}}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {

  props: {
    objData: {
      type: Object
    }
  },
}
</script>
<style lang="scss" scoped>
.news-home {
  background-color: #ffffff;
  width: 100%;
  margin: auto;
}
.news-main {
  width: 100%;
  margin: auto;
}
.news-content {
  background-color: #fff;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-content-title {
  display: inline-block;
  font-size: 12px;
  color: #ffffff;
  position: absolute;
  left: 0px;
  bottom: 0px;
  background-color: black;
  width: 98%;
  padding: 1%;
  opacity: 0.65;
  white-space: normal;
  box-sizing: unset !important;
}
.news-main-item {
  background-color: #ffffff;
  padding: 5px 0px;
  border-top: 1px solid #eaeaea;
}
.news-content-item {
  position: relative;
}
.news-content-item-title {
  display: inline-block;
  font-size: 10px;
  width: 70%;
  margin-left: 1%;
  white-space: normal;
}
.news-content-item-img {
  width: 145px;
  height: 145px;
  background-color: #fff;
  display: flex;
  align-items: center;
}
.material-img {
  width: 100%;
}
</style>
